package com.ruoyi.readers.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 读者信息管理对象 readers
 * 
 * @author ynnz
 * @date 2025-05-23
 */
public class Readers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 读者ID */
    private Long readerId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String readerName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 读者类型 */
    @Excel(name = "读者类型")
    private String readerType;

    /** 学号(学生必填) */
    @Excel(name = "学号(学生必填)")
    private String studentId;

    /** 所属院系/部门 */
    @Excel(name = "所属院系/部门")
    private String department;

    /** 班级(学生必填) */
    @Excel(name = "班级(学生必填)")
    private String studentClass;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setReaderId(Long readerId) 
    {
        this.readerId = readerId;
    }

    public Long getReaderId() 
    {
        return readerId;
    }
    public void setReaderName(String readerName) 
    {
        this.readerName = readerName;
    }

    public String getReaderName() 
    {
        return readerName;
    }
    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setReaderType(String readerType) 
    {
        this.readerType = readerType;
    }

    public String getReaderType() 
    {
        return readerType;
    }
    public void setStudentId(String studentId) 
    {
        this.studentId = studentId;
    }

    public String getStudentId() 
    {
        return studentId;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setStudentClass(String studentClass) 
    {
        this.studentClass = studentClass;
    }

    public String getStudentClass() 
    {
        return studentClass;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("readerId", getReaderId())
            .append("readerName", getReaderName())
            .append("contactPhone", getContactPhone())
            .append("email", getEmail())
            .append("readerType", getReaderType())
            .append("studentId", getStudentId())
            .append("department", getDepartment())
            .append("studentClass", getStudentClass())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
